from django.urls import path
from .views import FinanceChatView
from django.urls import path
# from coze_finance_mate.migrations import views      # 或你自己的视图模块
from .views import FinanceChatView, get_chat_history  # 导入新视图
urlpatterns = [
    # 财务助手聊天接口：前端调用 /api/coze/finance-chat/
    path('api/coze/finance-chat/', FinanceChatView.as_view(), name='finance-chat'),

    # 聊天历史记录查询接口
    path('api/coze/chat-history/', get_chat_history, name='chat-history'),
]